package com.quiz.bis.domain.dto;

import com.quiz.bis.domain.vo.QuestionDetailVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 题目查重结果
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuestionDuplicateResult {
    private Long questionId;
    private String title;
    private String content;
    private Long typeId;
    private double similarity;
    private double mostSimilarQuestion;
    List<QuestionDetailVo> similarQuestions;

    public QuestionDuplicateResult(Long id, String title, String contentText, Long typeId, double similarity) {

        this.questionId = id;
        this.title = title;
        this.content = contentText;
        this.typeId = typeId;
        this.similarity = similarity;
    }
}